package com.dewod.producesales.service;

import com.dewod.producesales.utils.request.RequestApiUtil;


/**
 * 注册服务
 *
 * @author dewod
 * @date 2025-06-23
 */
public class RegisterService {

    public interface RegisterCallback {
        void onResult(boolean success);
    }

    public static void register(String requestUrl, RegisterCallback callback) {
        RequestApiUtil.register(requestUrl, aBoolean -> {
            if (aBoolean != null) {
                callback.onResult(aBoolean);
            } else {
                callback.onResult(false); // 默认失败
            }
        });
    }


}
